/*
 * @version: 1.0.0
 * @Author: fl
 * @Date: 2020-07-06 11:50:33
 * @LastEditTime: 2020-08-26 15:33:14
 */

import Vue from 'vue';
import Vuex from 'vuex';
import binding from '@/store/modules/binding';
import zmlist from '@/store/modules/zmlist';

Vue.use(Vuex);

function getLoadingActionPayload(action) {
  const [namespace = ''] = action.type.split('/');
  return {
    namespace,
    actionType: action.type,
  };
}
// subscribeAction是action发生变化时调用;
// 全局处理Loading状态


const store = new Vuex.Store({
  modules: {
    binding,
    zmlist
  },
  // getters,
  // plugins: [loadingPlugin],
  strict: process.env.NODE_ENV !== 'production',
});

export default store;
